	const mongoose = require('mongoose')
	//1、创建文档的结构对象
	let bookSchema = new mongoose.Schema({
		name: {
			type: String,
		},
		author: {
			type: String,
		},
		price: {
			type: Number,
		},
		is_hot: Boolean,
		characters: Array,
		pub_time: Date,
		test: mongoose.Schema.Types.Mixed, //任何类型
		outerId: mongoose.Schema.Types.ObjectId, //ID类型，可以用来存储其他集合中的ID作为外键
		weight: mongoose.Schema.Types.Decimal128 //高精度数字
	})
	//2、创建模型对象，用于对文档进行直接操作
	let bookModel = mongoose.model('books', bookSchema)
	module.exports = bookModel